package de.dhbw.tinf11b.vfb;

import de.dhbw.tinf11b.vfb.exceptions.MarkOutOfBoundsException;

/**
 * Mark class for explicit mark.
 *
 */
public class ResultMark extends AbstractMark {
	protected float result;
	
	public ResultMark(Unit unit, float result) throws MarkOutOfBoundsException {
		super(unit);
		if (result < 1.0 || result > 5.0) {
			throw new MarkOutOfBoundsException();
		}
		this.result = result;
	}
	
	public float getResult() {
		return result;
	}
	public void setResult(float result) {
		this.result = result;
	}
}